package com.jt.service.impl;

import com.jt.dao.UserMapper;
import com.jt.entity.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryAll() {
        System.out.println(userMapper);
        List<User> users = userMapper.queryAll();
        System.out.println(users);
        return users;
    }
}
